@extends('layout.userinfo')
@section('content')
    <div class="profile-panel" role="main">
        <h3 ng-if="pageTitleVisible" class="profile-paneltitle ng-scope"><span ng-bind="pageTitle" class="ng-binding">绑定邮箱</span><span class="subtitle ng-binding" ng-bind-html="pageSubtitle | toTrusted"></span></h3>
        <div class="profile-panelcontent" ng-transclude="">
            <!-- ngIf: !success -->
            <div ng-if="!success" class="ng-scope">
                <div security-verify-form="" link="formLink" class="ng-isolate-scope">
                    <form class="security-service ng-pristine ng-valid" ng-submit="link.submit()" novalidate="" method="post" action="/updateMail">
                      {{csrf_field()}}
                        <p class="service-text ng-binding ng-scope" ng-if="link.serviceText" ng-bind="link.serviceText">饿了么提示您：为了保障你的账户安全，请及时绑定邮箱！</p>
                        <!-- end ngIf: link.serviceText -->
                        <!-- ngIf: link.field -->
                        <div class="formfield ng-isolate-scope" ng-class="{ 'validate-error': model.$hintTypes[property] === 'error' }" ng-if="link.field" form-field="" label="邮箱地址" model="link.verify.link" property="email">
                            <label ng-bind="label" class="ng-binding">邮箱地址</label>
                            <input type="email" name="email"  placeholder="请输入绑定的邮箱地址" class="ng-scope ng-pristine ng-valid" />
                            <div class="formfield-hint">
                                <span ng-class="{ 'icon-dot-error': model.$hintTypes[property] === 'error', 'icon-dot-warning': model.$hintTypes[property] === 'warning' }" ng-bind="model.$hints[property]" class="ng-binding"></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <button type="submit" class="btn-primary btn-lg security-submit ng-binding" ng-bind="link.submitText">绑定邮箱</button>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
@endsection
